#include "PreGraphic.h"
#include "Actor.h"

Actor::Actor(void)
{
	mName = "";
	mPositon = Vector3::ZERO;
	mRotation = Quaternion::IDENTITY;
	mScale =Vector3::UNIT_SCALE;
	mIsVisible = true;
	mScene = NULL;
	mMaxWorld = Matrix4::IDENTITY;
}

Actor::~Actor(void)
{
}

void Actor::setDirection(const Vector3 & dir)
{
	mRotation = (-Vector3::UNIT_Y).getRotationTo(dir);
}

Vector3 Actor::getDirection() const
{
	return mRotation * (-Vector3::UNIT_Y);
}